How can I modify my validation function to accept only numbers from 0 to 10

visit shbcf.ru